import 'package:flutter_li_ke_jie/constant/app_constant.dart';

class AppGoods {
  String remark = "";
  String id = "";
  String name = "";
  String icon = "";
  num monthPrice = 0;
  num quarterPrice = 0;
  num yearPrice = 0;
  int bgType = 0;
  int goodsType = 0;
  String note = "";

  AppGoods(
      {this.remark="",
        this.id="",
        this.name="",
        this.icon=zhanWeiPng,
        this.monthPrice=0,
        this.quarterPrice=0,
        this.yearPrice=0,
        this.bgType=0,
        this.goodsType=0,
        this.note=""});

  AppGoods.fromJson(Map<String, dynamic> json) {
    remark = json['remark']??"";
    id = json['id']??"";
    name = json['name']??"";
    icon = json['icon']??"";
    monthPrice = json['monthPrice']??0;
    quarterPrice = json['quarterPrice']??0;
    yearPrice = json['yearPrice']??0;
    bgType = json['bgType']??0;
    goodsType = json['goodsType']??0;
    note = json['note']??"";
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['remark'] = this.remark;
    data['id'] = this.id;
    data['name'] = this.name;
    data['icon'] = this.icon;
    data['monthPrice'] = this.monthPrice;
    data['quarterPrice'] = this.quarterPrice;
    data['yearPrice'] = this.yearPrice;
    data['bgType'] = this.bgType;
    data['goodsType'] = this.goodsType;
    data['note'] = this.note;
    return data;
  }
}
